package com.yanqu.road.entity.grandchild;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Objects;

@FieldTypeAnnotation(tableName = "t_u_pupil")
public class PupilData extends DataObject {
    @FieldTypeAnnotation(select = true,update = true)
    private long userId;
    @FieldTypeAnnotation(update = true)
    private int patronsId;
    @FieldTypeAnnotation
    private int title;
    @FieldTypeAnnotation
    private int num;

    public PupilData() {
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (!Objects.equals(this.userId, userId)) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getPatronsId() {
        return patronsId;
    }

    public void setPatronsId(int patronsId) {
        if (!Objects.equals(this.patronsId, patronsId)) {
            this.patronsId = patronsId;
            setUpdateOption();
        }
    }

    public int getTitle() {
        return title;
    }

    public void setTitle(int title) {
        if (!Objects.equals(this.title, title)) {
            this.title = title;
            setUpdateOption();
        }
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        if (!Objects.equals(this.num, num)) {
            this.num = num;
            setUpdateOption();
        }
    }
}
